package socketmvc.server.context;

public class ThreadSocketChannelHandler {
    private final static ThreadLocal<SocketChannel> contextThreadLocal = new ThreadLocal<>();

    public static SocketChannel get(){
       return contextThreadLocal.get();
    }

    public static void set(SocketChannel context){
        contextThreadLocal.set(context);
    }

    public static void remove(){
        contextThreadLocal.remove();
    }
}
